package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.GoodsPurchase;

/**
 * 采购订单Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-13
 */
public interface GoodsPurchaseMapper 
{
    /**
     * 查询采购订单
     * 
     * @param purchaseId 采购订单主键
     * @return 采购订单
     */
    public GoodsPurchase selectGoodsPurchaseByPurchaseId(Long purchaseId);

    /**
     * 查询采购订单列表
     * 
     * @param goodsPurchase 采购订单
     * @return 采购订单集合
     */
    public List<GoodsPurchase> selectGoodsPurchaseList(GoodsPurchase goodsPurchase);

    /**
     * 新增采购订单
     * 
     * @param goodsPurchase 采购订单
     * @return 结果
     */
    public int insertGoodsPurchase(GoodsPurchase goodsPurchase);

    /**
     * 修改采购订单
     * 
     * @param goodsPurchase 采购订单
     * @return 结果
     */
    public int updateGoodsPurchase(GoodsPurchase goodsPurchase);

    /**
     * 删除采购订单
     * 
     * @param purchaseId 采购订单主键
     * @return 结果
     */
    public int deleteGoodsPurchaseByPurchaseId(Long purchaseId);

    /**
     * 批量删除采购订单
     * 
     * @param purchaseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteGoodsPurchaseByPurchaseIds(Long[] purchaseIds);

    List<GoodsPurchase> selectGoodsPurchase();

    int selectCountByPurchaseSn(String purchaseSn);
}
